package com.cnswhy.cloud.server.core.dto;

import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.cnswhy.cloud.common.core.base.entity.Entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 
 * </p>
 *
 * @author cnswhy
 * @since 2021-01-29
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "BaseBankPageDTO", description = "")
public class BaseBankPageDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 简称
     */
    @ApiModelProperty(value = "简称")
    @NotEmpty(message = "简称不能为空")
    @Length(max = 64, message = "简称长度不能超过64")
    private String abbr;
    /**
     * 银行名称
     */
    @ApiModelProperty(value = "银行名称")
    @NotEmpty(message = "银行名称不能为空")
    @Length(max = 32, message = "银行名称长度不能超过32")
    private String bankName;
    /**
     * 银行代码
     */
    @ApiModelProperty(value = "银行代码")
    @NotEmpty(message = "银行代码不能为空")
    @Length(max = 32, message = "银行代码长度不能超过32")
    private String bankCode;
    /**
     * 联行号
     */
    @ApiModelProperty(value = "联行号")
    @NotEmpty(message = "联行号不能为空")
    @Length(max = 32, message = "联行号长度不能超过32")
    private String bankCnaps;
    /**
     * apiCode
     */
    @ApiModelProperty(value = "apiCode")
    @Length(max = 32, message = "apiCode长度不能超过32")
    private String apiCode;

}
